Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor FXIOS-10145 - Update how we are tearing down our tests #22481

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

cavaevinci
Copy link
Contributor

@cavaevinci cavaevinci commented Oct 10, 2024

In teardown methods in test,put super.tearDown to be executed last during teardown

📜 Tickets

Jira ticket
Github issue

💡 Description

In teardown methods in test,put super.tearDown to be executed last during teardown

📝 Checklist

You have to check all boxes before merging

  • [✏️ ] Filled in the above information (tickets numbers and description of your work)
  • [✏️ ] Updated the PR name to follow our PR naming guidelines
  • [✏️ ] Wrote unit tests and/or ensured the tests suite is passing
  • When working on UI, I checked and implemented accessibility (minimum Dynamic Text and VoiceOver)
  • If needed, I updated documentation / comments for complex code and public methods
  • If needed, added a backport comment (example @Mergifyio backport release/v120)

In teardown methods in test,put super.tearDown to be executed last during teardown
@cavaevinci cavaevinci requested review from a team as code owners October 10, 2024 13:17
@cyndichin cyndichin self-requested a review October 10, 2024 13:39
@mobiletest-ci-bot
Copy link

Messages
📖 Edited 187 files
📖 Created 0 files

Generated by 🚫 Danger Swift against 5180b1a

Copy link
Contributor

@cyndichin cyndichin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you @cavaevinci for going through all the test files and making the changes 🥳 !! I had two small comments, but everything else looks great.

@clarmso I'll leave you to confirm if there's any issues with the UI test, but it seems it passes bitrise.

Copy link
Contributor

@cyndichin cyndichin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @cavaevinci, looks great now! appreciate the work!

we will also need an approval from the automation team cc: @clarmso

@@ -21,10 +21,6 @@ let websiteWithSearchField = "https://developer.mozilla.org/en-US/"

class DragAndDropTests: BaseTestCase {
// Disable test suite since in theory it does not make sense with Chron tabs implementation
override func tearDown() {
XCUIDevice.shared.orientation = UIDeviceOrientation.portrait
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to set the device to portrait again or the next tests would be run in landscape.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cavaevinci wanted to follow up on this PR, seems like there's one outstanding comment from @clarmso

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cyndichin ,missed this one,sorry.I will resolve this in next 24 hours.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no worries! thank you!

@clarmso
Copy link
Collaborator

clarmso commented Oct 15, 2024

@clarmso I'll leave you to confirm if there's any issues with the UI test, but it seems it passes bitrise.

I can review the XCUITests.

Copy link
Contributor

This PR has been automatically marked as stale. Please leave any comment to keep this PR opened. It will be closed automatically if no further update occurs in the next 7 days. Thank you for your contributions!

@github-actions github-actions bot added the stale Stalebot use this label to stale issues and PRs label Oct 30, 2024
Copy link
Contributor

mergify bot commented Oct 30, 2024

This pull request has conflicts when rebasing. Could you fix it @cavaevinci? 🙏

@github-actions github-actions bot removed the stale Stalebot use this label to stale issues and PRs label Oct 31, 2024
@cyndichin
Copy link
Contributor

@cavaevinci unfortunately it seems there are some conflicts now, let me know if you are still interested in working on this PR; otherwise this PR will go stale and you have done great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants